Communication with MCI Devices

It is possible for each MCI device to use one of more of the following as identifiers:

    a device identifier

    a device name

    an alias

    the filename of the currently loaded content.

 

MCIWnd provides macros you can use to retrieve this information. You can then use this information to communicate through MCI directly with MCI devices associated with MCIWnd windows.

You can retrieve the identifier of the current MCI device by using the MCIWndGetDeviceID8U6J0S macro. The MCI device identifier is a numerical value that identifies the instance of the MCI device your application is using. Your application can use this identifier when communicating with an MCI device by using the mciSendCommand_H60X4 function.

To retrieve the name of the current MCI device, use the MCIWndGetDevice25I9H93 macro. The MCI device name is a null-terminated string that identifies the device type associated with an MCIWnd window. Your application can use this name when communicating with an MCI device by using mciSendCommand.

You can retrieve the alias of the current MCI device by using the MCIWndGetAliasE3QO3R macro. Your application can use this alias when communicating with an MCI device by using the mciSendString1PGC_K2 function.

Finally, you can retrieve the filename used by an MCI device by using the MCIWndGetFileName..IWIO macro. The filename identifies the content currently associated with an MCIWnd window. Your application can use this filename when communicating with a MCI device by using mciSendCommand or mciSendString.